import i18n from '@/common/lang'

export const columns = [
  {
    label: i18n.t('supplier.fieldAssessment.orderNos'),
    width: 'auto',
    prop: 'dictName',
    fixed: true
  },
  {
    label: i18n.t('supplier.fieldAssessment.state'),
    width: 'auto',
    prop: 'dictType'
  },
  {
    label: i18n.t('supplier.fieldAssessment.supplierName'),
    width: 'auto',
    prop: 'preset'
  },
  {
    label: i18n.t('supplier.fieldAssessment.supplierCode'),
    width: 'auto',
    prop: 'state'
  },
  {
    label: i18n.t('supplier.fieldAssessment.reslut'),
    prop: 'createName',
    width: 'auto'
  },
  {
    label: i18n.t('supplier.fieldAssessment.score'),
    prop: 'createName',
    width: 'auto'
  },
  {
    label: i18n.t('supplier.fieldAssessment.date'),
    prop: 'createTime',
    minWidth: 160,
    width: 'auto'
  },
  {
    label: i18n.t('supplier.fieldAssessment.template'),
    prop: 'createName',
    width: 'auto'
  }
]
export const actions = [
  {
    key: 'edit',
    text: i18n.t('common.edit'),
    permissions: 'upms:dict:update'
  },
  {
    key: 'dictValue',
    text: i18n.t('supplier.fieldAssessmentValue.dictValue'),
    permissions: 'upms:dictValue:search'
  },
  {
    key: 'delete',
    text: i18n.t('common.delete'),
    permissions: 'upms:dict:delete'
  }
]
